import { NgModule }            from '@angular/core';
import { CommonModule }        from '@angular/common';
import { CookieService }         from 'angular2-cookie/services/cookies.service';
import { FormsModule }         from '@angular/forms';
import { HttpModule,JsonpModule }          from '@angular/http';
import { ModalModule }                     from 'ng2-bootstrap';
import { TypeaheadModule }            from 'ng2-bootstrap';
import { TabsModule }            from 'ng2-bootstrap';
import {BaiduMap}               from "angular2-baidu-map";



import { MainComponent }                     from './main.component';
import { pubu }                              from './pubu/pubu';
import { MapComponent }                      from './map/map';
import { VipComponent }                      from './vip/vip';
import { linkO }                             from './pubu/linkone';
import { linkT }                             from './pubu/linktwo';
import { MainRoutingModule }                 from './main.routes';
import { PasswordComponent }                 from './forgotpassword/password';
import { ResetComponent }                    from './resetpassword/resetpassword';
import { FactoryComponent }                  from './factory/factory';
import { ResfactoryComponent }               from './resdetail/resdetail';
import { NologinComponent }                  from './factorynologin/factorynologin';
import { PersonalComponent }                 from './personalcenter/personal';
import { CollectComponent }                  from './collect/collect';
import { UploadComponent }                   from './factoryupload/factoryupload';
import { EditComponent }                     from './useredit/useredit';
import { FactoryeditComponent }              from './factoryedit/factoryedit';
import { DonaComponent }                     from './donation/donation';
import { DonatwoComponent }                  from './donationtwo/donatwo';
import { DonathreeComponent }                from './donathree/donathree';
import { DonafourComponent }                 from './donafour/donafour';
import { FacdetailComponent }                 from './factorydetail/facdetail';
import { ReseditComponent }                 from './resedit/resedit';
import { RegisterComponent }                 from './userregister/register';
import { BaiduComponent }                 from './map/baidu/baidu.component';
import { FileUploadModule } from 'ng2-file-upload';

//serve
import { MainService }            from './main.serve'


@NgModule({
  imports: [

    FormsModule,
    HttpModule,
    JsonpModule,
    CommonModule,
    MainRoutingModule,
    ModalModule,
    TypeaheadModule,
    TabsModule,
    FileUploadModule

  ],
  declarations: [
    MainComponent,
    pubu,
    linkO,
    linkT,
    MapComponent,
    VipComponent,
    PasswordComponent,
    ResetComponent,
    FactoryComponent,
    ResfactoryComponent,
    NologinComponent,
    PersonalComponent,
    CollectComponent,
    UploadComponent,
    EditComponent,
    FactoryeditComponent,
    DonaComponent,
    DonatwoComponent,
    DonathreeComponent,
    DonafourComponent,
    FacdetailComponent,
    ReseditComponent,
    RegisterComponent,
    BaiduMap,
    BaiduComponent,
  ],
  providers: [
    MainService,
    CookieService
  ]
})
export class MainModule { }
